package com.kenny.test;

import com.kenny.service.UserService;
import com.kenny.spring.KennyApplicationContext;
import lombok.SneakyThrows;

/**
 * MainTestClass.java
 * created by kenny 2022年12月10日 17:29
 */
public class MainTestClass {

    @SneakyThrows
    public static void main(String[] args) {
        KennyApplicationContext applicationContext = new KennyApplicationContext(Appconfig.class);
        UserService userService = (UserService) applicationContext.getBean("userService");
        System.out.println(userService);
        userService.test();
    }
}
